from sys import *
from tkinter import*
coords=[]
while len (coords)==0:
    try:
        x=int(input())
        y=int(input())
        n=int(input())
        coords=[0*n+x,0*n+y,
             10*n+x,0*n+y,
            10*n+x,10*n+y,
            20*n+x,10*n+y,
            20*n+x,30*n+y,
            10*n+x,30*n+y,
            10*n+x,20*n+y,
            0*n+x,20*n+y]
    except ValueError:
        print("Вы ввели еверное значение!")
#finally:
#    exit()
root = Tk()
root.title("ИТ марафон")
root.geometry("500x500")
canvas = Canvas (bg="white", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)
if max(coords)<=500 and min(coords)>=0:
    canvas.create_polygon(coords)
else:
    print("Размер фиуры превышает максимальны")
    root.mainloop()
